package org.cagt;

import java.util.Collection;

/**
 * Collection with limited capacity.
 * 
 * @author konrad.szalkowski (at) gmail.com
 * 
 * @param <T>
 *            Collection item type.
 */
public interface LimitedCollection<T> extends Collection<T> {
	/**
	 * Limit of capacity.
	 * 
	 * @return Limit of capacity.
	 */
	public int getLimit();

	/**
	 * True if collection limit is fulfilled.
	 * 
	 * @return True if size()==getLimit();
	 */
	public boolean isFull();
}
